import request from '@/utils/request'

// 查询邮件模板分组列表
export function listEmailtemplategroup(query) {
  return request({
    url: '/email/emailtemplategroup/list',
    method: 'get',
    params: query
  })
}

// 查询邮件模板分组详细
export function getEmailtemplategroup(id) {
  return request({
    url: '/email/emailtemplategroup/' + id,
    method: 'get'
  })
}

// 新增邮件模板分组
export function addEmailtemplategroup(data) {
  return request({
    url: '/email/emailtemplategroup',
    method: 'post',
    data: data
  })
}

// 修改邮件模板分组
export function updateEmailtemplategroup(data) {
  return request({
    url: '/email/emailtemplategroup',
    method: 'put',
    data: data
  })
}

// 删除邮件模板分组
export function delEmailtemplategroup(id) {
  return request({
    url: '/email/emailtemplategroup/' + id,
    method: 'delete'
  })
}
